FROM docker.m.daocloud.io/library/ubuntu

RUN sed -i s@/ports.ubuntu.com/@/mirrors.tuna.tsinghua.edu.cn/@g /etc/apt/sources.list && \
  apt update && apt  install -y iperf3

#CMD ["tail", "-f", "/dev/null"]
ENTRYPOINT ["/usr/bin/iperf3", "-s"]